﻿package com.sorayume.core {

	import flash.events.Event;
	
	public class SY_Event extends Event {
		
		public static const DEFAULT_NAME:String = "com.yagarasu.sorayume.SY_Event";
		
		public static const ON_ERROR:String = "sy_onError";
		public static const ON_XML_LOADED:String = "sy_onXmlLoaded";
		
		public var params:Object;
		
		public function SY_Event($type:String, $params:Object = null, $bubbles:Boolean = false, $cancelable:Boolean = false)
        {
			//Constructor Code
			
            super($type, $bubbles, $cancelable);
            this.params = $params;
        }
		
		public override function clone():Event
        {
            return new SY_Event(type, this.params, bubbles, cancelable);
        }
        public override function toString():String
        {
            return formatToString("CustomEvent", "params", "type", "bubbles", "cancelable");
        }
	}
	
}